package android.hardware.htfyun;

/* @hide */
interface INVRomDataService {

    /*
     * Key-value model;
     * key max size is 63 bytes;
     * string value max size is 1023 bytes
     */
    boolean setNVRomInt(String key, int value);

    int getNVRomInt(String key, int defValue);

    boolean removeIntegerNVRomData(String key);

    boolean setNVRomString(String key, String str);

    String getNVRomString(String key);

    boolean removeStringNVRomData(String key);

    /*
     * return json data
     * json data has following item:
        {
         "NVRomIntegerInfo": [
          {
           "key": "song",
           "value": 1000,
           "offset_index": 1,
           "set_time": "37141006-04-07 23:21:52.295"
          },
         ]
        }
     */
    String getAllIntegerInfo(int startOffset, int count);
    int getCountOfAllIntegerInfo();

    /*
     * return json data
     * json data has following item:
        {
         "NVRomStringInfo": [
          {
           "key": "song",
           "value": "test",
           "offset_index": 1,
           "set_time": "37141006-04-07 23:21:52.295"
          },
         ]
        }

     */
    String getAllStringInfo(int startOffset, int count);

    int getCountOfAllStringInfo();
}

